<template>
  <div style="text-align: left;">
    <p>购物车{{ title }}</p>
    <div>
        {{ content }}
   
    </div>
  </div>
</template>

<script>
export default {
    data() {
        return {
            title:"",
            content:"",
            
        }
    },
    watch:{
        $route(to, from) {
            this.loadDetail(this.$route.params.id);
        }
    },
    
    methods: {
       
    },
    created() {
       //如果没有登录  
       if(this.$route.params.id==4){
            this.$router.push("/")
       }
      
    },
}
</script>

<style>

</style>